import { BaseService, Service, Permission } from '@/cool';

@Service('crm/tljRecord')
export default class extends BaseService {
	@Permission('export')
	export(params) {
		return this.request({
			url: '/export',
			params: {
				...params
			}
		});
	}
	@Permission('detail')
	detail(params) {
		return this.request({
			url: '/detail',
			params: {
				...params
			}
		});
	}
	@Permission('searchGoods')
	searchGoods(params) {
		return this.request({
			url: '/searchGoods',
			params: {
				...params
			}
		});
	}
	@Permission('searchCounpon')
	searchCounpon(params) {
		return this.request({
			url: '/searchCounpon',
			params: {
				...params
			}
		});
	}
	@Permission('deleteByBatch')
	deleteByBatch(params) {
		return this.request({
			url: '/deleteByBatch',
			method: 'POST',
			data: {
				...params
			}
		});
	}
	@Permission('setNewPersonFreeGoods')
	setNewPersonFreeGoods(params) {
		return this.request({
			url: '/setNewPersonFreeGoods',
			method: 'POST',
			data: {
				...params
			}
		});
	}
	@Permission('privilege')
	privilege(params) {
		return this.request({
			url: '/privilege',
			params
		});
	}
}
